package com.shang.entity;

import lombok.Data;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

@Data
@Document(collection = "comment")
public class Comment {

    @Field("user")
    private String userName;
    private String content;

    private String date;
    @Field("endorse_num")
    private int endorseNum;
    @Field("oppose_num)")
    private int opposeNum;

}
